﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Vds2465Telegrams
{
	public class UserData_72_DataBlockValid : UserData_Device
	{
		#region constructor

		public UserData_72_DataBlockValid(byte device)
            : base(UserData.UserData72DataBlockValid, device)
		{

		}

		#endregion constructor
		
		#region ToString, Equals, GetHashCode

		public override int GetHashCode()
        {
            int hashCode = base.GetHashCode();
            return hashCode;
        }

        public override string ToString()
        {
            StringBuilder stringBuilder = new StringBuilder();
            stringBuilder.Append("(");
            stringBuilder.Append(ToStringProperties());
            stringBuilder.Append(")");

            return stringBuilder.ToString();
        }

        internal override string ToStringProperties()
        {
            StringBuilder stringBuilder = new StringBuilder();
            stringBuilder.Append(base.ToStringProperties());          
            return stringBuilder.ToString();
        }

        public override bool Equals(object obj)
        {
            Type objType = obj.GetType();
            if (this.GetType() == objType)
            {
				UserData_72_DataBlockValid userData2Compare = obj as UserData_72_DataBlockValid;
                return EqualsProperties(userData2Compare);
            }

            return false;
        }

		internal bool EqualsProperties(UserData_72_DataBlockValid userData2Compare)
        {
			return base.EqualsProperties(userData2Compare);
        }

        #endregion ToString, Equals, GetHashCode
	}
}
